home *** CD-ROM | disk | FTP | other *** search
- @echo off
- goto Start
- ┌──────────
- │ STEP.BAT █
- ▄▄▄▄▄▄▄▄▄▄█
-
- Sat 04-02-1994 16:30:44
-
- Version 2.1
-
- USAGE:
-
- STEP FileName (enter just the batch file name, no Extension)
-
- ──────────────────────────────────────────────────────────────────
-
- The new COMMAND.COM "/Y" switch in DOS Version 6.2 allows you to
- step a batch file.
-
- Each line is printed to the screen and ends in "Y/N[ ]?"
-
- If you press "Y" the batch file steps to the next command, if you
- press "N" it -skips- that command.
-
- You wonder why I needed to made a batch file for one switch? As
- "anyone" can type:
-
- COMMAND /C /Y MYBATCH.BAT
-
- and do this.
-
- Oh Yeh? Well... try that -exact- command and see how many different
- errors you can get before you get the correct syntax; it's not
- crystal clear from reading the help file. See text below from on
- line DOS 6.2 Help...
-
- ──────────────────────────────────────────────────────────────────
- COMMAND.COM
- Starts a new copy of the MS-DOS Command Interpreter.
-
- COMMAND [[drive:]path] [device] [/E:nnnnn] [/P [/MSG]]
- [/Y [/C command | /K command]]
-
- [drive:]path Specifies the directory containing COMMAND.COM file.
- device Specifies the device to use for command input and output.
- /E:nnnnn Sets the initial environment size to nnnnn bytes.
- /P Makes the new Command Interpreter permanent (can't exit).
- /MSG Stores all error messages in memory (requires /P).
- /Y Steps through the batch program specified by /C or /K.
- /C command Executes the specified command and returns.
- /K command Executes the specified command and continues running.
-
- The /P and /MSG switches may be used only when COMMAND is started
- by using the SHELL command in the CONFIG.SYS file.
- ──────────────────────────────────────────────────────────────────
-
-
- John De Palma on CompuServe 76076,571
-
- :Start
- if "%1"=="" goto Help
- command/y/k %1.bat
- goto End
- :Help
- cls
- echo.
- echo.
- echo █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
- echo █ STEP.BAT █▒▒
- echo █ █▒▒
- echo █ PURPOSE: Single step any batch file █▒▒
- echo █ with MS-DOS Version 6.2 █▒▒
- echo █ █▒▒
- echo █ COMMAND: STEP MyBatch █▒▒
- echo █ (don't need *.BAT) █▒▒
- echo █ █▒▒
- echo █ WARNING: Leaves you at the DOS █▒▒
- echo █ prompt, need to type █▒▒
- echo █ EXIT and press {Enter} █▒▒
- echo █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█▒▒
- echo ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- echo.
- pause
- :End
-